<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Treeman NAVI - API</title>

<jsp:include page="../core/includes.jsp"></jsp:include>

<script src="<c:url value="/resources/scripts/apitester.js"/>" type="text/javascript"></script>

</head>
<body>

<div style="margin: 100px auto 10px auto; width: 500px;">
	<div id="testerForm" >
		<form id="testerForm" onsubmit="return apiTestSubmit()" action="">
			<table>
				<tr>
					<td><select id="method" name="method">
							<option value="GET">GET</option>
							<option value="POST">POST</option>
							<option value="DELETE">DELETE</option>
					</select></td>
					<td>http://www.navi.threeman.com/api/</td>

					<td><input type="text" id="path" name="path" /></td>
					<td><input type="submit" value="Wyślij" />
				</tr>
			</table>
		</form>
	</div>
	<div id="testerResponse">
		<div id="response_body" style="margin-top: 10px; width: 500px; padding: 10px; background-color: #F2F2F2; border: 1px solid #CCCCCC;">
		</div>
	</div>
	</div>
</body>
</html>